package com.warm.test.scheduling;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.annotation.Component;
import org.noear.solon.scheduling.annotation.Retry;

/**
 * 定义重试执行的服务
 *
 * @author warm
 */
@Slf4j
@Component
public class RetryTask {
    // 有异常，会重试执行
    @Retry(Throwable.class)
    public void test(String hint) {
        log.info("进入重试RetryTask,线程为：{}", Thread.currentThread().getName());
        int a = 1 / 0;
    }
}